using Pumpkin.FrameBase;

public class UIBehaviourRoot : UIBehaviour
{
    private bool rootLoaded = false;

    protected new void Awake()
    {
        Intercept = false;
        AutoBind = true;
        HasHotFixObject = false;

        base.Awake();
    }

    protected new void Start()
    {
        param1[0] = this;
        crossUIObject.StaticInvoke("SetRoot", param1);

        if(!rootLoaded)
        {
            rootLoaded = true;
            SceneManager.Instance.OnUIRootLoaded(UnityEngine.SceneManagement.SceneManager.GetActiveScene());
        }
    }
}